import request from '@/utils/request'

export default{
    //前端讲师分页
    getPageTeacherList(page, limit){
        return request({
            url: `/eduservice/teacherfront//pageTeacherList/${page}/${limit}`,
            method: 'post'
        })
    },

    //根据讲师id查询讲师
    getTeacherById(id){
        return request({
            url: `/eduservice/teacher/getTeacherById/${id}`,
            method: 'get'
        })
    },

     //根据讲师id查询课程
     getCourseByTeacherId(id){
        return request({
            url: `/eduservice/teacherfront/getCourseByTeacherId/${id}`,
            method: 'get'
        })
    },
}